import random  # random 模块
dict = dict()  # 生成空字典
for i in range(50):  # 生成i1 001到050和i2 051到100
    if i < 9:
        i1 = '00' + str(i + 1)
        i2 = '0' + str(i + 51)
    elif 8 < i < 49:
        i1 = '0' + str(i + 1)
        i2 = '0' + str(i + 51)
    else:
        i1 = '0' + str(i + 1)
        i2 = str(i + 51)
    str1 = str(random.randint(
        10000000, 99999999))  # 用 random 模块生成10000000~99999999间八位随机数并转换成字符串
    str2 = str(random.randint(10000000, 99999999))
    id = '6283' + str1 + '3' + i1  # 银行卡号
    id2 = '6283' + str2 + '3' + i2
    dict[i] = {
        id: str(random.randint(100000, 999999)),
        id2: str(random.randint(100000, 999999))
    }  # 向字典里添加字典让他成为二维字典，用 random 模块生成100000~999999间六位随机数并转换成字符串
print(
    '17级青软2班 李翔宇 17114120208\n中国建设银行100张信用卡卡号及密码为：\n--------------------------'
)
str3 = ''  # 声明空字符串
for key in dict:  # 遍历字典
    # print(dict[key][id])
    str1 = str(dict[key])  # dict[key] 的value变成字符串
    str3 = str3 + str1.strip('{').strip('}') + '\n'  # 通过修改字符串得到想要的结果
print('{' + str3.strip('\n') + '}')
